emacs.git
9 years agoAccount for echo-keystrokes = which-key-idle-delay
justbur [Thu, 12 May 2016 12:39:38 +0000 (08:39 -0400)]
Account for echo-keystrokes = which-key-idle-delay

Ref #123

9 years agoBump version
justbur [Sat, 7 May 2016 12:07:55 +0000 (08:07 -0400)]
Bump version

9 years agoMerge pull request #122 from redguardtoo/master
Justin Burkett [Sat, 7 May 2016 12:03:05 +0000 (08:03 -0400)]
Merge pull request #122 from redguardtoo/master

tooltip-mode does in exist in emacs-nox #120

9 years agotooltip-mode does in exist in emacs-nox #120
Chen Bin [Sat, 7 May 2016 04:19:23 +0000 (14:19 +1000)]
tooltip-mode does in exist in emacs-nox #120

9 years agoBump version
justbur [Thu, 5 May 2016 14:31:45 +0000 (10:31 -0400)]
Bump version

9 years agoBackport two frame width functions for 24.3 support
justbur [Thu, 5 May 2016 14:30:44 +0000 (10:30 -0400)]
Backport two frame width functions for 24.3 support

Fixes #119

9 years agoMerge pull request #116 from cute-jumper/master
Justin Burkett [Wed, 27 Apr 2016 19:04:01 +0000 (15:04 -0400)]
Merge pull request #116 from cute-jumper/master

Fix god mode advice

9 years agoFix god mode advice
Junpeng Qiu [Wed, 27 Apr 2016 18:45:41 +0000 (14:45 -0400)]
Fix god mode advice

See https://github.com/justbur/emacs-which-key/pull/115

9 years agoMerge branch 'god-mode'
justbur [Tue, 26 Apr 2016 18:27:58 +0000 (14:27 -0400)]
Merge branch 'god-mode'

9 years agoAdd advice for god-mode support to hide popup
justbur [Tue, 26 Apr 2016 18:26:25 +0000 (14:26 -0400)]
Add advice for god-mode support to hide popup

The standard way to hide the popup before the command is not working.

9 years agoFix minor issues with god-mode support
justbur [Tue, 26 Apr 2016 18:16:08 +0000 (14:16 -0400)]
Fix minor issues with god-mode support

Make sure advice is activated for god-mode-lookup-command

Check for null which-key--god-mode-key-string

9 years agoBetter default for which-key-echo-keystrokes
justbur [Tue, 26 Apr 2016 15:08:32 +0000 (11:08 -0400)]
Better default for which-key-echo-keystrokes

Fixes #114

9 years agoAdd third-party section to which-key.el
justbur [Tue, 26 Apr 2016 13:18:48 +0000 (09:18 -0400)]
Add third-party section to which-key.el

9 years agoAdd third-party support section to readme
justbur [Tue, 26 Apr 2016 13:18:20 +0000 (09:18 -0400)]
Add third-party support section to readme

9 years agoAdd support for god-mode
justbur [Tue, 26 Apr 2016 13:07:12 +0000 (09:07 -0400)]
Add support for god-mode

Needs to be explicitly activated by calling
(which-key-enable-god-mode-support)

9 years agoBump version
justbur [Tue, 19 Apr 2016 12:15:23 +0000 (08:15 -0400)]
Bump version

9 years agoUse new history var for keymap selection
justbur [Tue, 19 Apr 2016 12:14:34 +0000 (08:14 -0400)]
Use new history var for keymap selection

9 years agoBump version
justbur [Sun, 17 Apr 2016 20:58:15 +0000 (16:58 -0400)]
Bump version

9 years agoExplicitly initialize variable-name-history
justbur [Sun, 17 Apr 2016 20:57:26 +0000 (16:57 -0400)]
Explicitly initialize variable-name-history

See #110

9 years agoBump version
justbur [Sun, 17 Apr 2016 20:37:26 +0000 (16:37 -0400)]
Bump version

9 years agoDeclare variable-name-history
justbur [Sun, 17 Apr 2016 20:34:45 +0000 (16:34 -0400)]
Declare variable-name-history

Fixes #110

9 years agoBump version
justbur [Sun, 10 Apr 2016 19:07:15 +0000 (15:07 -0400)]
Bump version

9 years agoSupport key ranges below top level
justbur [Sun, 10 Apr 2016 19:05:02 +0000 (15:05 -0400)]
Support key ranges below top level

10 years agoAdd badge
justbur [Wed, 6 Apr 2016 17:53:58 +0000 (13:53 -0400)]
Add badge

10 years agoTrigger travis
justbur [Tue, 5 Apr 2016 14:12:04 +0000 (10:12 -0400)]
Trigger travis

10 years agoSet up travis
justbur [Tue, 5 Apr 2016 14:09:59 +0000 (10:09 -0400)]
Set up travis

10 years agoBump version
justbur [Tue, 5 Apr 2016 14:06:45 +0000 (10:06 -0400)]
Bump version

10 years agoFix problem where prefix-title-alist was not updated
justbur [Tue, 5 Apr 2016 14:05:38 +0000 (10:05 -0400)]
Fix problem where prefix-title-alist was not updated

10 years agoFix docstring typo
justbur [Tue, 5 Apr 2016 14:05:15 +0000 (10:05 -0400)]
Fix docstring typo

10 years agoAdd tests
justbur [Tue, 5 Apr 2016 14:04:54 +0000 (10:04 -0400)]
Add tests

10 years agoBump version
justbur [Tue, 5 Apr 2016 13:39:20 +0000 (09:39 -0400)]
Bump version

10 years agoFix bug in declare-prefixes-for-mode
justbur [Tue, 5 Apr 2016 13:36:43 +0000 (09:36 -0400)]
Fix bug in declare-prefixes-for-mode

Fixes #109

10 years agoFix key-chord problem
justbur [Thu, 31 Mar 2016 20:13:06 +0000 (16:13 -0400)]
Fix key-chord problem

See the note in which-key--update

10 years agoSupport key-chord
justbur [Thu, 31 Mar 2016 14:51:32 +0000 (10:51 -0400)]
Support key-chord

Fixes #108

10 years agoVersion 1.0
justbur [Tue, 22 Mar 2016 02:05:26 +0000 (22:05 -0400)]
Version 1.0

10 years agoCleanup for 1.0 release
justbur [Tue, 22 Mar 2016 02:04:53 +0000 (22:04 -0400)]
Cleanup for 1.0 release

10 years agoMake show-standard-help narrow to prefix
justbur [Thu, 17 Mar 2016 17:04:33 +0000 (13:04 -0400)]
Make show-standard-help narrow to prefix

This is what describe-prefix-bindings does and it should be consistent.

10 years agoShorten lighter name
justbur [Mon, 14 Mar 2016 11:25:54 +0000 (07:25 -0400)]
Shorten lighter name

10 years agomade minor mode lighter customizable
Will S. Medrano [Mon, 14 Mar 2016 01:07:58 +0000 (18:07 -0700)]
made minor mode lighter customizable

10 years agoDisable special-keys option by default
justbur [Fri, 11 Mar 2016 00:51:58 +0000 (19:51 -0500)]
Disable special-keys option by default

It's probably too surprising to have enabled by default.

10 years agoFix compiler warnings
justbur [Thu, 10 Mar 2016 14:03:35 +0000 (09:03 -0500)]
Fix compiler warnings

Fixes #106

10 years agoIncrement version
justbur [Thu, 3 Mar 2016 21:43:31 +0000 (16:43 -0500)]
Increment version

10 years agoFix bug when show-prefix is left and there is one line
justbur [Thu, 3 Mar 2016 21:41:31 +0000 (16:41 -0500)]
Fix bug when show-prefix is left and there is one line

Fixes #104

10 years agoExport reload-key-sequence function
justbur [Mon, 29 Feb 2016 13:07:55 +0000 (08:07 -0500)]
Export reload-key-sequence function

Fixes #103

10 years agoMerge pull request #102 from zonuexe/master
Justin Burkett [Sat, 13 Feb 2016 14:54:50 +0000 (09:54 -0500)]
Merge pull request #102 from zonuexe/master

Disable show-trailing-whitespace

10 years agoDisable show-trailing-whitespace
USAMI Kenta [Sat, 13 Feb 2016 14:21:05 +0000 (23:21 +0900)]
Disable show-trailing-whitespace

10 years agoAdd missing case for which-key-show-prefix
justbur [Tue, 9 Feb 2016 16:32:20 +0000 (11:32 -0500)]
Add missing case for which-key-show-prefix

nil is a valid value for this option.

10 years agoAdd which-key-is-verbose
justbur [Sun, 7 Feb 2016 01:16:07 +0000 (20:16 -0500)]
Add which-key-is-verbose

Allows one to silence messages which may not indicate an error.

10 years agoRefactor create-pages and show-page
justbur [Wed, 3 Feb 2016 20:14:26 +0000 (15:14 -0500)]
Refactor create-pages and show-page

10 years agoImprove some function names
justbur [Wed, 3 Feb 2016 20:13:24 +0000 (15:13 -0500)]
Improve some function names

10 years agoDon't pass window-width around
justbur [Wed, 3 Feb 2016 17:40:35 +0000 (12:40 -0500)]
Don't pass window-width around

10 years agoFix problems with operator keymap function
justbur [Wed, 3 Feb 2016 13:27:40 +0000 (08:27 -0500)]
Fix problems with operator keymap function

1. Introduce using-show-keymap and using-show-operator-keymap vars to
make it clear how we are entering which-key

2. Add inhibit-next-operator-keymap for keys in the operator maps that
are bound to commands that read the next key "manually"

3. Fix problem where the next page hint was only being shown sometimes
in the operator maps. Need to distinguish between show-operator-keymap
and the possibility that an operator is active but the usual which-key
popup is showing.

10 years agoSimplify page turning function
justbur [Wed, 3 Feb 2016 13:24:54 +0000 (08:24 -0500)]
Simplify page turning function

10 years agoUse keyboard-quit in abort key sequence
justbur [Wed, 3 Feb 2016 13:23:55 +0000 (08:23 -0500)]
Use keyboard-quit in abort key sequence

Need to do this for the operator keymap function. Otherwise the operator
state doesn't exit properly

10 years agoComment out window var and add new func
justbur [Wed, 3 Feb 2016 13:22:53 +0000 (08:22 -0500)]
Comment out window var and add new func

The window var is not being used.

10 years agoDon't listify key sequence repeatedly
justbur [Sat, 30 Jan 2016 02:08:12 +0000 (21:08 -0500)]
Don't listify key sequence repeatedly

This function is not idempotent it turns out.

10 years agoInterpret ESC in operator popup
justbur [Sat, 30 Jan 2016 01:41:15 +0000 (20:41 -0500)]
Interpret ESC in operator popup

See #99

10 years agoImprove previous commit
justbur [Thu, 28 Jan 2016 20:39:47 +0000 (15:39 -0500)]
Improve previous commit

Filter out keys with :suppress-keymap property, which seem to be the
primary ones ignored in operator state

10 years agoMerge branch 'master' of https://github.com/justbur/emacs-which-key
justbur [Thu, 28 Jan 2016 20:04:05 +0000 (15:04 -0500)]
Merge branch 'master' of https://github.com/justbur/emacs-which-key

10 years agoInitial try at addressing #99
justbur [Thu, 28 Jan 2016 20:03:27 +0000 (15:03 -0500)]
Initial try at addressing #99

10 years agoMerge pull request #100 from yatesco/patch-1
Justin Burkett [Tue, 26 Jan 2016 12:55:58 +0000 (07:55 -0500)]
Merge pull request #100 from yatesco/patch-1

Trivial fix correcting SpacEmacs

10 years agoTrivial fix correcting SpacEmacs
Colin Yates [Tue, 26 Jan 2016 12:47:58 +0000 (12:47 +0000)]
Trivial fix correcting SpacEmacs

10 years agoAdd which-key-idle-secondary-delay
justbur [Mon, 18 Jan 2016 01:55:04 +0000 (20:55 -0500)]
Add which-key-idle-secondary-delay

Allows the delay time to be different for popups that follow an initial
popup within the same key sequence.

10 years agoFix problem with side-window dimension calculation
justbur [Mon, 11 Jan 2016 14:56:49 +0000 (09:56 -0500)]
Fix problem with side-window dimension calculation

The fringes were not being included in version 24. This makes the
calculation consistent with the left/right side-window calculation and
fixes #97.

10 years agoFix C-h prompt for show-keymap commands
justbur [Mon, 21 Dec 2015 17:12:29 +0000 (12:12 -0500)]
Fix C-h prompt for show-keymap commands

10 years agoFix undo for show-keymap
justbur [Mon, 21 Dec 2015 00:36:05 +0000 (19:36 -0500)]
Fix undo for show-keymap

10 years agoDistinguish using-show-keymap
justbur [Sun, 20 Dec 2015 22:18:22 +0000 (17:18 -0500)]
Distinguish using-show-keymap

10 years agoAllow traversal of keymaps in new commands
justbur [Sun, 20 Dec 2015 20:54:53 +0000 (15:54 -0500)]
Allow traversal of keymaps in new commands

10 years agoFilter out empty keymaps in new functions
justbur [Sun, 20 Dec 2015 20:38:38 +0000 (15:38 -0500)]
Filter out empty keymaps in new functions

10 years agoAdd which-key-show-minor-mode-keymap
justbur [Sun, 20 Dec 2015 20:31:57 +0000 (15:31 -0500)]
Add which-key-show-minor-mode-keymap

Version of which-key-show-keymap that only looks in minor-mode-map-alist

10 years agoAdd which-key-show-keymap
justbur [Sun, 20 Dec 2015 18:19:16 +0000 (13:19 -0500)]
Add which-key-show-keymap

Basic version of this command that only shows the top-level of a keymap.
Waiting for feedback on how this should work.

10 years agoNew stable version
justbur [Thu, 17 Dec 2015 14:27:22 +0000 (09:27 -0500)]
New stable version

10 years agoIgnore evil-state bindings
justbur [Fri, 11 Dec 2015 20:29:59 +0000 (15:29 -0500)]
Ignore evil-state bindings

These are the fake keys that evil uses to store maps under

10 years agoMerge branch 'master' of https://github.com/justbur/emacs-which-key
justbur [Fri, 11 Dec 2015 01:03:48 +0000 (20:03 -0500)]
Merge branch 'master' of https://github.com/justbur/emacs-which-key

10 years agoAdd which-key-init-buffer-hook
justbur [Fri, 11 Dec 2015 01:02:58 +0000 (20:02 -0500)]
Add which-key-init-buffer-hook

10 years agoMerge pull request #91 from Amorymeltzer/prefix-prefix-doc
Justin Burkett [Wed, 9 Dec 2015 21:23:48 +0000 (16:23 -0500)]
Merge pull request #91 from Amorymeltzer/prefix-prefix-doc

Document which-key-prefix-prefix

10 years agoDocument which-key-prefix-prefix
Amory Meltzer [Wed, 9 Dec 2015 21:19:23 +0000 (13:19 -0800)]
Document which-key-prefix-prefix

https://github.com/justbur/emacs-which-key/commit/30bc0c224bac091fcf2759c8e8853e7237196090

10 years agoAllow custom prefix-prefix
justbur [Wed, 9 Dec 2015 01:24:23 +0000 (20:24 -0500)]
Allow custom prefix-prefix

Suggested in #90. Thanks @Amorymeltzer

10 years agoTweak display of key sequence in one case
justbur [Sun, 6 Dec 2015 18:29:25 +0000 (13:29 -0500)]
Tweak display of key sequence in one case

This is for the C-h commands when the which-key message is not shown in
the echo area but the echo-keystrokes prefix is

10 years agoecho-keystrokes should never be nil
justbur [Sun, 6 Dec 2015 18:16:05 +0000 (13:16 -0500)]
echo-keystrokes should never be nil

The correct test is to test if it's 0.

10 years agoPreserve prefx-arg when paging
justbur [Sat, 5 Dec 2015 17:37:29 +0000 (12:37 -0500)]
Preserve prefx-arg when paging

10 years agoWork on handling prefix args better
justbur [Fri, 4 Dec 2015 20:34:17 +0000 (15:34 -0500)]
Work on handling prefix args better

10 years agoMake C-h command hint respect C-h-map commands
justbur [Fri, 4 Dec 2015 19:21:17 +0000 (14:21 -0500)]
Make C-h command hint respect C-h-map commands

10 years agoMerge branch 'master' of https://github.com/justbur/emacs-which-key
justbur [Fri, 4 Dec 2015 01:51:52 +0000 (20:51 -0500)]
Merge branch 'master' of https://github.com/justbur/emacs-which-key

10 years agoDon't abort key seq after unbound key in C-h-map
justbur [Fri, 4 Dec 2015 01:49:43 +0000 (20:49 -0500)]
Don't abort key seq after unbound key in C-h-map

Allows to recover from accidentally pressing C-h.

This commit also fixes some echo area problems that become apprent after
introducing the C-h-map stuff

10 years agoClarify C-h commands description in readme
Justin Burkett [Thu, 3 Dec 2015 17:10:47 +0000 (12:10 -0500)]
Clarify C-h commands description in readme

10 years agoFix top-level note and satisfy compiler
justbur [Thu, 3 Dec 2015 16:15:19 +0000 (11:15 -0500)]
Fix top-level note and satisfy compiler

10 years agoAdd C-h commands to what's new in readme
justbur [Thu, 3 Dec 2015 13:44:14 +0000 (08:44 -0500)]
Add C-h commands to what's new in readme

Still need to update the rest of the content

10 years agoFix note on right and add abort keys
justbur [Thu, 3 Dec 2015 13:33:56 +0000 (08:33 -0500)]
Fix note on right and add abort keys

10 years agoFix undo and timer usage
justbur [Thu, 3 Dec 2015 13:10:50 +0000 (08:10 -0500)]
Fix undo and timer usage

10 years agoIntroduce C-h command dispatch function
justbur [Thu, 3 Dec 2015 03:27:08 +0000 (22:27 -0500)]
Introduce C-h command dispatch function

Replace role of show-next-page with C-h-dispatch which immediately reads
a key and calls a command from C-h-map, which may be one of several
paging commands, a command to undo the last keypress, or a command to
directly access describe-prefix-bindings.

This commit does not include documenting these changes in the readme.

Note that several options become deprecated here as they no longer have
the same (if any effect).

10 years agoRemove dependencies from README
justbur [Tue, 1 Dec 2015 16:53:02 +0000 (11:53 -0500)]
Remove dependencies from README

10 years agoCleanup make-text-button call
justbur [Tue, 1 Dec 2015 01:58:48 +0000 (20:58 -0500)]
Cleanup make-text-button call

10 years agoFix return value problem for make-text-button
justbur [Mon, 30 Nov 2015 23:43:09 +0000 (18:43 -0500)]
Fix return value problem for make-text-button

Apparently in versions before 24.5 the return value was not always the
button itself when a string was used as the argument

10 years agoMerge branch 'grammati'
justbur [Mon, 30 Nov 2015 18:47:27 +0000 (13:47 -0500)]
Merge branch 'grammati'

10 years agoUse safe version of string-width
justbur [Mon, 30 Nov 2015 18:26:19 +0000 (13:26 -0500)]
Use safe version of string-width

10 years agoUse key-description for canonical keys
justbur [Mon, 30 Nov 2015 16:23:50 +0000 (11:23 -0500)]
Use key-description for canonical keys

This takes the idea in the previous commit and translates the
representations of keys in the alists to be the output of
key-description. The issue is that `M-x` for example has two
representations with listify-key-sequence, but only one (it seems) from
key-description.

10 years agoDisplay prefix names in terminal-mode
Chris Perkins [Sat, 28 Nov 2015 18:15:21 +0000 (11:15 -0700)]
Display prefix names in terminal-mode

When running emacs in a terminal (or at least, in iTerm), keys are not
passed through to emacs the same way that they are in graphical mode.

For example, M-m (important in spacemacs) is the key-sequence
`[134217837]` in graphical emacs, but `[27 109]` ("ESC m") in terminal.

The variable `which-key-prefix-name-alst` only has a mapping for the
former (the 134217837), and so the names of submenus all show up as
"+prefix", limiting discoverability.

This commit converts the key sequence into a canonical form (eg:
converts `[27 109]` into `[134217837]`) in
`which-key--maybe-replace-prefix-name`, so that the prefixes are found.

I think some work is probably needed for
`which-key-prefix-title-alist` too, but I'm not entirely sure what
that's used for, so I didn't mess with it.

10 years agoAdd README note about last commit
justbur [Fri, 20 Nov 2015 20:40:16 +0000 (15:40 -0500)]
Add README note about last commit

10 years agoShow docstring on hover in echo area for commands
justbur [Fri, 20 Nov 2015 20:23:40 +0000 (15:23 -0500)]
Show docstring on hover in echo area for commands